/**
 * Product Features Showcase
 * Inspired by AIShowcase design with enhanced glass morphism
 */

.features {
  padding: 6rem 0 8rem 0;
  background: linear-gradient(
    180deg,
    #f8fafc 0%,
    #ffffff 25%,
    #f1f5f9 50%,
    #e2e8f0 75%,
    #f8fafc 100%
  );
  position: relative;
  overflow: hidden;
  /* 修改入场动画 - 避免translateY */
  opacity: 0;
  animation: sectionFadeIn 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* 修改区域入场动画 - 只使用透明度 */
@keyframes sectionFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.features::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg, 
    rgba(248, 250, 252, 0.9) 0%,
    rgba(255, 255, 255, 0.7) 25%,
    rgba(241, 245, 249, 0.5) 50%,
    rgba(226, 232, 240, 0.3) 75%,
    rgba(248, 250, 252, 0) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 20% 30%,
    rgba(99, 102, 241, 0.08) 0%,
    transparent 50%
  ),
  radial-gradient(
    circle at 80% 70%,
    rgba(16, 185, 129, 0.06) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.sectionHeader {
  text-align: center;
  margin-bottom: 6rem;
  position: relative;
  z-index: 2;
  /* 修改标题动画 - 避免translateY */
  opacity: 0;
  animation: headerFadeIn 1.0s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

/* 修改标题动画 - 只使用透明度 */
@keyframes headerFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.sectionTitle {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #1d1d1f;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-family: var(--ifm-font-family-base) !important;
  /* 添加标题的细微呼吸动画 */
  animation: titleGlow 3s ease-in-out infinite;
}

/* 标题呼吸动画 */
@keyframes titleGlow {
  0%, 100% {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }
  50% {
    text-shadow: 0 2px 6px rgba(59, 130, 246, 0.15);
  }
}

.sectionSubtitle {
  font-size: 1.25rem;
  color: #64748b;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
  font-weight: 400;
  font-family: var(--ifm-font-family-base) !important;
  /* 修改副标题动画 - 避免translateY */
  opacity: 0;
  animation: subtitleFadeIn 1.0s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both;
}

/* 修改副标题动画 - 只使用透明度 */
@keyframes subtitleFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Modern Grid Layout */
.featuresGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
  position: relative;
  z-index: 2;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .featuresGrid {
    padding: 0 1rem;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .featuresGrid {
    padding: 0 0.75rem;
    max-width: 100%;
  }
}

.featureItem {
  display: flex;
  height: 100%;
  /* 修改卡片级联动画 - 避免translateY */
  opacity: 0;
  transform: scale(0.95);
  animation: featureItemScale 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* 为每个特性卡片添加不同的延迟 */
.featureItem:nth-child(1) { animation-delay: 0.7s; }
.featureItem:nth-child(2) { animation-delay: 0.8s; }
.featureItem:nth-child(3) { animation-delay: 0.9s; }
.featureItem:nth-child(4) { animation-delay: 1.0s; }
.featureItem:nth-child(5) { animation-delay: 1.1s; }
.featureItem:nth-child(6) { animation-delay: 1.2s; }
.featureItem:nth-child(7) { animation-delay: 1.3s; }
.featureItem:nth-child(8) { animation-delay: 1.4s; }
.featureItem:nth-child(9) { animation-delay: 1.5s; }
.featureItem:nth-child(10) { animation-delay: 1.6s; }
.featureItem:nth-child(11) { animation-delay: 1.7s; }
.featureItem:nth-child(12) { animation-delay: 1.8s; }
.featureItem:nth-child(13) { animation-delay: 1.9s; }

/* 修改特性卡片动画 - 避免translateY */
@keyframes featureItemScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.featureCard {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0.02) 100%
  );
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  backdrop-filter: blur(24px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 1.5rem;
  /* 改进卡片动画 */
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  height: 100%;
  min-height: 320px;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  /* 添加微妙的呼吸动画 */
  animation: cardBreathe 4s ease-in-out infinite;
}

/* 卡片呼吸动画 */
@keyframes cardBreathe {
  0%, 100% {
    box-shadow: 
      0 8px 32px rgba(0, 0, 0, 0.12),
      0 2px 8px rgba(255, 255, 255, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.3),
      inset 0 -1px 0 rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow: 
      0 10px 36px rgba(0, 0, 0, 0.15),
      0 3px 10px rgba(255, 255, 255, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.35),
      inset 0 -1px 0 rgba(255, 255, 255, 0.12);
  }
}

.featureCard:hover {
  transform: translateY(-16px) scale(1.03);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.2),
    0 16px 32px rgba(59, 130, 246, 0.18),
    0 8px 16px rgba(255, 255, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  /* 暂停呼吸动画 */
  animation-play-state: paused;
}

.featureCard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    transparent 30%,
    transparent 70%,
    rgba(255, 255, 255, 0.08) 100%
  );
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
  border-radius: 20px;
}

.featureCard::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 100%
  );
  opacity: 0.6;
  transition: opacity 0.5s ease;
}

.featureCard:hover::before {
  opacity: 1;
}

.featureCard:hover::after {
  opacity: 1;
}

.cardHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.featureIcon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
  backdrop-filter: blur(12px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  /* 改进图标动画 */
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  /* 添加图标的微妙脉冲动画 */
  animation: iconPulse 3s ease-in-out infinite;
}

/* 图标脉冲动画 */
@keyframes iconPulse {
  0%, 100% {
    box-shadow: 
      0 4px 16px rgba(0, 0, 0, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.4),
      inset 0 -1px 0 rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow: 
      0 6px 20px rgba(0, 0, 0, 0.12),
      0 0 20px rgba(59, 130, 246, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.45),
      inset 0 -1px 0 rgba(255, 255, 255, 0.12);
  }
}

.featureIcon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  border-radius: 16px;
}

.featureCard:hover .featureIcon {
  transform: scale(1.12) rotate(3deg);
  box-shadow: 
    0 12px 32px rgba(0, 0, 0, 0.18),
    0 0 25px rgba(59, 130, 246, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.08) 100%
  );
  /* 暂停脉冲动画 */
  animation-play-state: paused;
}

.featureCard:hover .featureIcon::before {
  opacity: 1;
}

.iconEmoji {
  font-size: 1.3rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  /* 添加图标旋转动画 */
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* 图标hover时的旋转效果 */
.featureCard:hover .iconEmoji {
  transform: scale(1.1) rotate(-3deg);
}

.cardBadge {
  padding: 0.3rem 0.6rem;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.9) 0%,
    rgba(139, 92, 246, 0.85) 100%
  );
  -webkit-backdrop-filter: blur(8px) saturate(1.3);
  backdrop-filter: blur(8px) saturate(1.3);
  color: white;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  box-shadow: 
    0 4px 12px rgba(99, 102, 241, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cardBadge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border-radius: 10px;
}

.featureCard:hover .cardBadge {
  transform: scale(1.05);
  box-shadow: 
    0 6px 16px rgba(99, 102, 241, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.95) 0%,
    rgba(139, 92, 246, 0.9) 100%
  );
}

.featureCard:hover .cardBadge::before {
  opacity: 1;
}

.featureContent {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.featureTitle {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #1e293b;
  letter-spacing: -0.01em;
  line-height: 1.3;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  text-align: left;
  position: relative;
  z-index: 3;
  font-family: var(--ifm-font-family-base) !important;
}

.featureDescription {
  color: #64748b;
  line-height: 1.6;
  font-size: 0.875rem;
  font-weight: 400;
  font-family: var(--ifm-font-family-base) !important;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  text-align: left;
  margin: 0 0 1.25rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  opacity: 0.85;
}

.featureCard:hover .featureTitle {
  color: #1e293b;
  transform: translateY(-1px);
}

.featureCard:hover .featureDescription {
  color: #475569;
  opacity: 1;
  transform: translateY(-1px);
}

.metricHighlight {
  margin-top: auto;
}

.metricValue {
  display: inline-block;
  background: linear-gradient(
    135deg,
    rgba(129, 140, 248, 0.12) 0%,
    rgba(139, 92, 246, 0.08) 50%,
    rgba(165, 180, 252, 0.06) 100%
  );
  -webkit-backdrop-filter: blur(16px) saturate(1.05);
  backdrop-filter: blur(16px) saturate(1.05);
  color: #6366f1;
  padding: 0.4rem 0.8rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  box-shadow: 
    0 1px 3px rgba(99, 102, 241, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -0.5px 0 rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(129, 140, 248, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  font-family: var(--ifm-font-family-base) !important;
}

.metricValue::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%
  );
  transition: left 0.8s ease;
}

.featureCard:hover .metricValue {
  background: linear-gradient(
    135deg,
    rgba(129, 140, 248, 0.18) 0%,
    rgba(139, 92, 246, 0.12) 50%,
    rgba(165, 180, 252, 0.09) 100%
  );
  color: #4f46e5;
  transform: translateY(-0.5px);
  box-shadow: 
    0 2px 6px rgba(99, 102, 241, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -0.5px 0 rgba(99, 102, 241, 0.08);
  border-color: rgba(129, 140, 248, 0.25);
}

.featureCard:hover .metricValue::before {
  left: 100%;
}

.highlightTags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.highlightTag {
  background: linear-gradient(
    135deg,
    rgba(165, 180, 252, 0.08) 0%,
    rgba(199, 210, 254, 0.05) 100%
  );
  -webkit-backdrop-filter: blur(12px) saturate(1.02);
  backdrop-filter: blur(12px) saturate(1.02);
  color: #64748b;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(165, 180, 252, 0.12);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  font-family: var(--ifm-font-family-base) !important;
}

.highlightTag::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.06) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border-radius: 8px;
}

.featureCard:hover .highlightTag {
  background: linear-gradient(
    135deg,
    rgba(165, 180, 252, 0.12) 0%,
    rgba(199, 210, 254, 0.08) 100%
  );
  border-color: rgba(165, 180, 252, 0.18);
  transform: translateY(-0.5px);
  color: #475569;
}

.featureCard:hover .highlightTag::before {
  opacity: 1;
}

/* Color Variants */
.purple {
  border-color: rgba(139, 92, 246, 0.2);
}

.purple:hover {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 8px 20px rgba(139, 92, 246, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.green {
  border-color: rgba(16, 185, 129, 0.2);
}

.green:hover {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 8px 20px rgba(16, 185, 129, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.blue {
  border-color: rgba(59, 130, 246, 0.2);
}

.blue:hover {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 8px 20px rgba(59, 130, 246, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.orange {
  border-color: rgba(251, 146, 60, 0.2);
}

.orange:hover {
  border-color: rgba(251, 146, 60, 0.4);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 8px 20px rgba(251, 146, 60, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.indigo {
  border-color: rgba(99, 102, 241, 0.2);
}

.indigo:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 8px 20px rgba(99, 102, 241, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.teal {
  border-color: rgba(20, 184, 166, 0.2);
}

.teal:hover {
  border-color: rgba(20, 184, 166, 0.4);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 8px 20px rgba(20, 184, 166, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.cyan {
  border-color: rgba(6, 182, 212, 0.2);
}

.cyan:hover {
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 8px 20px rgba(6, 182, 212, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.pink {
  border-color: rgba(236, 72, 153, 0.2);
}

.pink:hover {
  border-color: rgba(236, 72, 153, 0.4);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 8px 20px rgba(236, 72, 153, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.featureGlow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.03), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.featureCard:hover .featureGlow {
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .featuresGrid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .features {
    padding: 3rem 0 5rem 0;
  }
  
  .sectionTitle {
    font-size: 2.5rem;
  }
  
  .sectionSubtitle {
    font-size: 1.125rem;
    margin-bottom: 3rem;
  }
  
  .sectionHeader {
    margin-bottom: 3rem;
  }
  
  .featuresGrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 2rem;
    padding: 0 1rem;
    max-width: 100%;
  }
  
  .featureCard {
    padding: 1rem;
    min-height: 260px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .featureIcon {
    width: 42px;
    height: 42px;
  }
  
  .iconEmoji {
    font-size: 1.1rem;
  }
  
  .featureTitle {
    font-size: 1rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
  }
  
  .featureDescription {
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0.8rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  
  .cardBadge {
    font-size: 0.6rem;
    padding: 0.25rem 0.5rem;
  }
  
  .metricValue {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    margin-bottom: 0.6rem;
  }
  
  .highlightTag {
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
  }
}

@media (max-width: 480px) {
  .featuresGrid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0 0.75rem;
    max-width: 100%;
  }
  
  .sectionTitle {
    font-size: 2rem;
    line-height: 1.1;
  }
  
  .sectionSubtitle {
    font-size: 1rem;
  }
  
  .featureCard {
    padding: 1rem;
    min-height: 240px;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
  
  .featureIcon {
    width: 40px;
    height: 40px;
  }
  
  .iconEmoji {
    font-size: 1.0rem;
  }
  
  .featureTitle {
    font-size: 0.95rem;
    line-height: 1.2;
  }
  
  .featureDescription {
    font-size: 0.75rem;
    line-height: 1.4;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
  
  .cardBadge {
    font-size: 0.55rem;
    padding: 0.2rem 0.4rem;
  }
  
  .metricValue {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }
  
  .highlightTag {
    font-size: 0.6rem;
    padding: 0.15rem 0.35rem;
  }
  
  .highlightTags {
    gap: 0.3rem;
  }
}

/* 添加性能优化和动画控制 */
@media (prefers-reduced-motion: reduce) {
  /* 为有动画偏好设置的用户禁用动画 */
  .features,
  .sectionHeader,
  .sectionTitle,
  .sectionSubtitle,
  .featureItem,
  .featureCard,
  .featureIcon,
  .iconEmoji {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  
  .featureCard:hover {
    transform: none !important;
  }
}

/* 为低性能设备优化 */
@media (max-width: 480px) and (prefers-reduced-motion: no-preference) {
  /* 移动设备上简化动画 */
  .featureCard {
    animation-duration: 2s; /* 减少呼吸动画频率 */
  }
  
  .featureIcon {
    animation-duration: 4s; /* 减少脉冲动画频率 */
  }
  
  .sectionTitle {
    animation-duration: 4s; /* 减少标题动画频率 */
  }
}

/* 高性能设备增强 */
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .featureCard {
    /* 增强hover效果 */
    will-change: transform, box-shadow;
  }
  
  .featureCard:hover {
    transform: translateY(-20px) scale(1.04);
  }
}
